package com.uyaer.magic.nape
{
	import com.uyaer.magic.common.Common;
	
	import nape.geom.Vec2;
	import nape.phys.Body;

	public class BodyManager
	{
		/**
		 *主角小球 
		 */		
		private var mBall:Body;
		
		
		private static var m_instance:BodyManager;
		public function BodyManager()
		{
		}
		public static function get i():BodyManager{
			return m_instance ||= new BodyManager();
		}
		
		
		public function set ball(value:Body):void{
			this.mBall = value;
			this.mBall.cbTypes.add(Common.ballCbType);
		}
		
		public function ballStartMove(v:Vec2):void{
			mBall && mBall.applyImpulse(v);
		}
	}
}